﻿<Window x:Class="Caliburn.ActionParameters.ShellView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:cal="http://www.caliburnproject.org"
        Width="640"
        Height="480">
	<StackPanel>
		<TextBox x:Name="Name" />
		<Button Content="Click Me">
			<cal:Message.Triggers>
				<cal:RoutedMessageTriggerCollection>
					<cal:EventMessageTrigger EventName="Click">
						<cal:ActionMessage MethodName="SayHello">
							<cal:Parameter Value="{Binding ElementName=Name, Path=Text}" />
						</cal:ActionMessage>
					</cal:EventMessageTrigger>
				</cal:RoutedMessageTriggerCollection>
			</cal:Message.Triggers>
		</Button>
	</StackPanel>
</Window>